#ifndef STATEBAR_H
#define STATEBAR_H

#include <QWidget>

const int STATE_COUNT = 7;
class StateBar : public QWidget
{
    Q_OBJECT
public:
    explicit StateBar(QWidget *parent = nullptr);
protected:
    enum TaskCount {
        UnKnow,
        Empty,
        Little,
        Busy,
        FestivalEmpty,
        FestivalNotEmpty
    };
    TaskCount states[STATE_COUNT] = { Empty };
    void paintEvent(QPaintEvent *event) override;

signals:

public slots:
    void refresh();
};

#endif // STATEBAR_H
